<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      height: 100px;
      background: #666666;
    }
  </style>
</head>

<body>
  <div>
    <p></p>
  </div>

  <script>

    window.onload = function () {
      var box = document.querySelector('div')
      var p = document.querySelector('p');
      box.addEventListener('touchend', function (e) {
        //返回touch对象的个数
        p.innerHTML = e.changedTouches.length;
        for (let i = 0; i < e.changedTouches.length; i++) {
          console.log(e.changedTouches.item(i))
        }
      })

    }

  </script>

</body>

</html>